package com.kaigle.ai.tools;


import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Component;

@Component
public class EmailTool {

    @Tool(description = "发送邮件")
    public void sendEmail(@ToolParam(description = "to") String to,
                          @ToolParam(description = "subject") String subject,
                          @ToolParam(description = "content") String content) {
        System.out.println(String.format("发送邮件====> to:%s,subject:%s,content:%s", to, subject, content));
    }

}
